package com.ws.service.impl;

import com.ws.dao.GoodsDao;
import com.ws.entity.Goods;
import com.ws.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by WUSONG on 2017/11/30.
 */
@Service
@Transactional
public class GoodsServiceImpl implements GoodsService {
    @Override
    public Goods findById(Integer goodsId) {
        return goodsDao.selectGoodsById(goodsId);
    }

    @Autowired
    private GoodsDao goodsDao;
}
